<%@ include file="/common/taglibs.jsp"%>

<title><fmt:message key="cardTimeDetail.title"/></title>
<content tag="heading"><fmt:message key="cardTimeDetail.heading"/></content>

<html:form action="saveCardTime" method="post" styleId="cardTimeForm" onsubmit="return validateCardTimeForm(this)">
<ul>

<html:hidden property="id"/>
    <li>
        <generalsetting:label styleClass="desc" key="cardTimeForm.empNo"/>
        <html:errors property="empNo"/>
        <html:text property="empNo" styleId="empNo" styleClass="text medium"/>

    </li>

    <li>
        <generalsetting:label styleClass="desc" key="cardTimeForm.direction"/>
        <!-- html:errors property="direction"/-->
        <!-- html:text property="direction" styleId="direction" styleClass="text medium"/-->
            <html:select property="direction">
            	<html:options collection="directions" property="value" labelProperty="label"/>
            </html:select>
    </li>
    
    <li>
        <generalsetting:label styleClass="desc" key="cardTimeForm.brushDate"/>
        <html:errors property="brushDate"/>
        <html:text property="brushDate" styleId="brushDate" styleClass="text medium"/>
            <A HREF="#" onclick="cal1.select(document.forms[0].brushDate,'anchor1','yyyy/MM/dd');return false;"
                     title = "cal1.select(document.forms[0].brushDate, 'anchor1', 'yyyy/MM/dd'); return false;"
                     id="anchor1" name="anchor1">                
            <fmt:message key="button.calendar"/>            
            </A> 
    </li>
    
    <li>
        <generalsetting:label styleClass="desc" key="cardTimeForm.brushTime"/>
        <html:errors property="brushTime"/>
        <html:text property="brushTime" styleId="brushTime" styleClass="text medium"/>

    </li>

    <li>
        <generalsetting:label styleClass="desc" key="cardTimeForm.description"/>
        <html:errors property="description"/>
        <html:text property="description" styleId="description" styleClass="text medium"/>

    </li>



    <li class="buttonBar bottom">
        <html:submit styleClass="button" property="method.save" onclick="bCancel=false">
            <fmt:message key="button.save"/>
        </html:submit>

        <html:submit styleClass="button" property="method.delete" onclick="bCancel=true; return confirmDelete('CardTime')">
            <fmt:message key="button.delete"/>
        </html:submit>

        <html:cancel styleClass="button" onclick="bCancel=true">
            <fmt:message key="button.cancel"/>
        </html:cancel>
    </li>
</ul>
</html:form>
<SCRIPT LANGUAGE="JavaScript" SRC="scripts/CalendarPopup.js"></SCRIPT>
<script type="text/javascript">
    var cal1 = new CalendarPopup();
	//cal1.showNavigationDropdowns();
    cal1.showYearNavigation(); 
	cal1.showYearNavigationInput();
    Form.focusFirstElement($("cardTimeForm"));
</script>

<html:javascript formName="cardTimeForm" cdata="false" dynamicJavascript="true" staticJavascript="false"/>
<script type="text/javascript" src="<html:rewrite page="/scripts/validator.jsp"/>"></script>
